<?php
require dirname(__FILE__).'/../../common/ConfigParser.php';
require dirname(__FILE__).'/../../common/FdHelper.php';
$script_name = $_SERVER['SCRIPT_NAME'];
$tmp = explode('/',$script_name);
$uri_data = array(
	'written_language_tag' => $tmp[1],
	'group_name' => $tmp[3],
	'category_name' => $tmp[4],
	'where' => $tmp[5],
);
$v['uri_data'] = $uri_data;
unset($tmp);

function encodeFilterUri($uri_data,$where=array(0,0))
{
	return '/' . $uri_data['written_language_tag'] . '/list/' . $uri_data['group_name'] . '/' . $uri_data['category_name'] . '/' .implode('-', array_values($where)).'/';
}

header('Content-Type:text/html; charset=UTF-8');
$output = array();
require dirname(__FILE__).'/../../module/head.php';
require dirname(__FILE__).'/../../module/logo_and_search.php';
require dirname(__FILE__).'/../../module/group_hidden_categories_nav.php';
require dirname(__FILE__).'/../../module/filter.php';
require dirname(__FILE__).'/../../module/products_preview.php';

require FdHelper::getViewFilePath('head');//由于head中的title是由数据生成的，所以要先查数据，后输出页面。
?>
<body>
<style type="text/css">
/*layout*/
.area_1
{
	width:970px;
	margin:0 auto;
}
.area_3
{
	width:10em;
	float:left;
}
.area_4
{
	margin-left:11em;
}
</style>
<div class="area_1">
	<div class="area_2">
	<?php
	require FdHelper::getViewFilePath('logo_and_search');
	?>
	</div>
	<div class="area_3">
	<?php
	require FdHelper::getViewFilePath('group_hidden_categories_nav');
	?>
	</div>
	<div class="area_4">
	<?php
	require FdHelper::getViewFilePath('filter');
	?>
	<?php
	require FdHelper::getViewFilePath('products_preview');
	?>
	</div>
	<?php
	//require dirname(__FILE__).'/../../controller/list/module_page_num.php';
	?>
</div>
</body>
</html>
